import {createRouter,createWebHistory} from 'vue-router'
import routes from './routes'

//创建路由实例
const router =createRouter({
    history:createWebHistory(),//配置history模式
    routes:routes
})

export default router